package com.leads.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 线索表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_crm_leads")
@ApiModel(value = "CrmLeads对象", description = "线索表")
public class CrmLeads implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "leads_id", type = IdType.AUTO)
    private Integer leadsId;

    @ApiModelProperty("1已转化 0 未转化")
    @TableField("is_transform")
    private Integer isTransform;

    @ApiModelProperty("跟进状态 0未跟进1已跟进")
    @TableField("followup")
    private Integer followup;

    @ApiModelProperty("线索名称")
    @TableField("leads_name")
    private String leadsName;

    @ApiModelProperty("客户id")
    @TableField("customer_id")
    private Integer customerId;

    @ApiModelProperty("下次联系时间")
    @TableField("next_time")
    private Date nextTime;

    @ApiModelProperty("电话")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建人ID")
    @TableField("create_user_id")
    private Long createUserId;

    @ApiModelProperty("负责人ID")
    @TableField("owner_user_id")
    private Long ownerUserId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("批次 比如附件批次")
    @TableField("batch_id")
    private String batchId;

    @ApiModelProperty("1 分配")
    @TableField("is_receive")
    private Integer isReceive;

    @ApiModelProperty("最后跟进时间")
    @TableField("last_time")
    private Date lastTime;

    @ApiModelProperty("最后一条跟进记录")
    @TableField("last_content")
    private String lastContent;


}
